#ifndef PCB_H
#define PCB_H

typedef enum { WAITING, RUNNING, BLOCKED, FINISH } proc_state;

struct PCB {
  int pid;
  struct PCB *next;
  int priority;
  int cpu_time;
  int need_time;
  proc_state state;
  int time_slice;
};

struct PCB *alloc_PCB(int pid);

#endif